class Parent  extends Author {
    Student student
    static constraints = {
        student(nullable:false)
    }

    static mapping = {
       table 'parent'
    }

    String toString() {
        "${name}"
    }
}